package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 退货单
 */
public class BuyReturn implements Serializable {
    private Integer id;

    private String code;

    private Integer userId;

    private BigDecimal amount;

    private BigDecimal rAmount;

    private Integer orderSta;

    private Integer receSta;

    private Integer type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date returnDate;

    private BigDecimal reAmount;

    private Integer houseId;

    private String single;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    private String remark;

    private String accessory;

    private Integer isDelete;

    private String orderCode;

    private List<DetailList> list;

    private List<DetailList> list2;

    public List<DetailList> getList2() {
        return list2;
    }

    public void setList2(List<DetailList> list2) {
        this.list2 = list2;
    }

    public List<DetailList> getList() {
        return list;
    }

    public void setList(List<DetailList> list) {
        this.list = list;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getrAmount() {
        return rAmount;
    }

    public void setrAmount(BigDecimal rAmount) {
        this.rAmount = rAmount;
    }

    public Integer getOrderSta() {
        return orderSta;
    }

    public void setOrderSta(Integer orderSta) {
        this.orderSta = orderSta;
    }

    public Integer getReceSta() {
        return receSta;
    }

    public void setReceSta(Integer receSta) {
        this.receSta = receSta;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public BigDecimal getReAmount() {
        return reAmount;
    }

    public void setReAmount(BigDecimal reAmount) {
        this.reAmount = reAmount;
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public String getSingle() {
        return single;
    }

    public void setSingle(String single) {
        this.single = single == null ? null : single.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getAccessory() {
        return accessory;
    }

    public void setAccessory(String accessory) {
        this.accessory = accessory == null ? null : accessory.trim();
    }
}